# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-23 16:55

demo_list = [1, 2, 3]
print(demo_list)
print(id(demo_list))
demo_list.append(999)
print(demo_list)
demo_list.pop(-1)
print(demo_list)
print(id(demo_list))

demo_dict = {"name": "小明"}
print("定义字典后的内存地址 %d" % id(demo_dict))
demo_dict["age"] = 18
demo_dict.pop("name")
demo_dict["name"] = "老王"
print("修改数据后的内存地址 %d" % id(demo_dict))